
using System;
using System.Linq;
using Csla;
using Csla.Data;
using Csla.Security;
using Csla.Validation;

namespace HousingInfo.Library
{ 
	public partial class HousingTypeBO : Csla.BusinessBase<HousingTypeBO>
	{

		#region Authorization Rules
		protected override void AddAuthorizationRules()
		{
			//TODO: Define authorization rules in HousingTypeBO
			//AuthorizationRules.AllowRead(HousingTypeIDProperty, "HousingTypeBOReadGroup");
			//AuthorizationRules.AllowRead(HousingTypeNameProperty, "HousingTypeBOReadGroup");
			//AuthorizationRules.AllowRead(IsActiveProperty, "HousingTypeBOReadGroup");

			//AuthorizationRules.AllowWrite(HousingTypeNameProperty, "HousingTypeBOWriteGroup");
			//AuthorizationRules.AllowWrite(IsActiveProperty, "HousingTypeBOWriteGroup");
		}

		protected static void AddObjectAuthorizationRules()
		{
			//TODO: Define object-level authorization rules of HousingTypeBO
			//AuthorizationRules.AllowCreate(typeof(HousingTypeBO), "HousingTypeBOCreateGroup"));
			//AuthorizationRules.AllowEdit(typeof(HousingTypeBO), "HousingTypeBOEditGroup"));
			//AuthorizationRules.AllowDelete(typeof(HousingTypeBO), "HousingTypeBODeleteGroup"));
		}
		#endregion //Authorization Rules
		private void AssignParentKey(HousingInfo.DataLinQ.HousingType data)
		{
			 //data.ParentId = ReadProperty<ParentBO>(ParentBOProperty).Id;
		}

	}
}
